<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')"/>
            <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-job-edit" th:object="${actRuJob}">
        <input name="id" th:field="*{id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="rev" th:field="*{rev}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="type" th:field="*{type}" class="form-control"
                                       type="text" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="lockExpTime"
                                           th:value="${#dates.format(actRuJob.lockExpTime, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd"
                                           type="text">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="lockOwner" th:field="*{lockOwner}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="exclusive" th:field="*{exclusive}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="executionId" th:field="*{executionId}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="processInstanceId" th:field="*{processInstanceId}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="procDefId" th:field="*{procDefId}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="retries" th:field="*{retries}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="exceptionStackId" th:field="*{exceptionStackId}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <textarea name="exceptionMsg" class="form-control">[[*{exceptionMsg}]]</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="duedate"
                                           th:value="${#dates.format(actRuJob.duedate, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd"
                                           type="text">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="repeat" th:field="*{repeat}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="handlerType" th:field="*{handlerType}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <textarea name="handlerCfg" class="form-control">[[*{handlerCfg}]]</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${comment}
                                ：</label>
                            <div class="col-sm-8">
                                <input name="tenantId" th:field="*{tenantId}" class="form-control"
                                       type="text">
                            </div>
                        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
        <th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
    var prefix = ctx + "road/job";
    $("#form-job-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-job-edit').serialize());
        }
    }

            $("input[name='lockExpTime']").datetimepicker({
                format: "yyyy-mm-dd",
                minView: "month",
                autoclose: true
            });

            $("input[name='duedate']").datetimepicker({
                format: "yyyy-mm-dd",
                minView: "month",
                autoclose: true
            });
</script>
</body>
</html>
